<template>
    <el-form-item label="" class="mt_20">
        <el-checkbox v-model="checked" @change="selectType">匀速发布</el-checkbox>
        <div class="mt_12 flexbox flexcenter" v-if="checked">
            <el-input-number v-model="subFrom.gap_time" controls-position="right" :min="1" :max="60" label="" style="width:100px" class="number_up"></el-input-number>
            <div class="font_14 color_01 ml_12">分钟</div>
        </div>
    </el-form-item>
</template>

<script>
export default {
    props: ["subFrom"],
    components: {},
    name: "",
    data() {
        return {
            checked: false,
        };
    },
    created() {},
    methods: {
        selectType(val){
            if(val){
                this.subFrom.gap_time = 1
            }else{
                this.subFrom.gap_time = 0
            }
        }
    },
};
</script>


<style scoped>
/deep/ .number_up .el-icon-arrow-up:before{
    content: "\e78f";
}
</style>

